Copy sh file:
  file.managed:
    - name: /root/monitor-service.sh
    - source: salt://rabbitmq/files/monitor-service.sh
    - unless: test -f /root/monitor-service.sh

Install sh:
  cron.present:
    - name: "/root/monitor-service.sh -s=rabbitmq-server -l=/var/log/batch/rabbitmq-error.log > /var/log/batch/rabbitmq-monitor.log"
    - identifier: monitor_service
    - comment: monitor service
    - user: root
    - minute: '*/1'
    - require:
      - file: /root/monitor-service.sh
